home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / basic / qbfaqr01.zip / CAPS.QRM < prev    next >
Text File  |  1992-05-31  |  2KB  |  35 lines

  1. ===========================================================================
  2.  BBS: PC Connect
  3. Date: 05-30-92 (03:36)             Number: 11610
  4. From: GEORGE STEINMETZ             Refer#: 11552
  5.   To: PHIL HODGES                   Recvd: NO  
  6. Subj: &H ?!??!!!                     Conf: (11) R-QBasic
  7. ---------------------------------------------------------------------------
  8. PH>Turn CAPS lock off
  9.  
  10. PH>  DEF SEG = &H40                  'this part makes some sense
  11. PH>  POKE &H17, PEEK (&H17) OR 171   ' ?!?!
  12. PH>                            ^^^
  13. PH>  According to the file:     |-----------------|
  14. PH>                                               |
  15. PH>  &H17  Byte 1;                                |
  16. PH>        .                                      |
  17. PH>        .                                      |
  18. PH>        &H40 - Caps Lock has been toggled      |
  19. PH>        .                                      |
  20. PH>        .                                      |
  21. PH>        Byte 2;                                |
  22. PH>        &H40 - Caps lock key is depressed      |
  23. PH>                                               |
  24. PH>   Now WHERE does the 171 come in!?     --------
  25. PH>    and what's the Byte 1 and 2 ?!
  26.  
  27. It doesn't.  Somebody was programming way past his bedtime.
  28. Use POKE &H17, PEEK (&H17) OR &H40 to turn Caps Lock on and
  29.     POKE &H17, PEEK (&H17) AND (&HFF - &H40) to turn it off.
  30. ---
  31.  ■ OLX 2.1 TD ■ I idiot-proof my programs,but along comes a bigger idiot.
  32.  
  33. PCRelay:OTHER -> #1413 RelayNet (tm)
  34. 4.11             The Other BBS  908-775-6705  New User Support
  35.